import request from "@/api/index"

export default {
  //条件查询
  queryByCondition (params) {
    const url = "traceability/stage/queryByCondition"
    return request.post(url,
      { homeBaseId: sessionStorage.getItem('homeBaseId'), ...params })
  },
  //分页条件查询
  queryPageByCondition (params) {
    const url = "traceability/stage/queryPageByCondition"
    return request.post(url, { homeBaseId: sessionStorage.getItem('homeBaseId'), ...params })
  },
  add (params) {
    const url = "traceability/stage/add"
    return request.post(url, params)
  },
  edit (params) {
    const url = "traceability/stage/edit"
    return request.post(url, params)
  },
  delById (params) {
    const url = "traceability/stage/delById"
    return request.get(url, params)
  },
  delListById (params) {
    const url = "traceability/stage/delListById"
    return request.get(url, params)
  }
}